package com.day0422.SellCar;/*
 * @创建者：黄苟苟
 * @创建时间：2021/4/23   15:50
 * @Description描述
 **/

public interface Car {
    String getName();
    int getPrice();
}
class BMW implements Car{

    @Override
    public String getName() {
        return "BMW";
    }

    @Override
    public int getPrice() {
        return 3000;
    }
}
class CheryQQ implements Car{

    @Override
    public String getName() {
        return "奇瑞QQ";
    }

    @Override
    public int getPrice() {
        return 2000;
    }
}
class Santana implements Car{

    @Override
    public String getName() {
        return "桑塔纳";
    }

    @Override
    public int getPrice() {
        return 25000;
    }
}

